package com.briup.smartcity.web.controller;

import com.briup.smartcity.bean.BaseLog;
import com.briup.smartcity.service.IBaseLogService;
import com.briup.smartcity.utils.Result;
import com.briup.smartcity.utils.ResultUtil;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "日志信息模块")
@RestController
public class LogController {
    @Autowired
    private IBaseLogService service;
    @ApiOperation("分页查询日志信息")
    @GetMapping(value = "/auth/log/pageQuery")
    public Result pageQuery(int pageNum, int pageSize){
        PageInfo<BaseLog> token=service.pageQuery(pageNum,pageSize);
        return ResultUtil.success(token);
    }

}
